//
//  LocationCustomMenu.h
//  Contractor
//
//  Created by 金鑫 on 16/6/3.
//  Copyright © 2016年 star j. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol LTCustomMenuDelegate <NSObject>

- (void)ltCustomMenu:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath;

@end

typedef void(^Dismiss)(void);

@interface LocationCustomMenu : UIView<UITableViewDataSource, UITableViewDelegate>

@property (nonatomic, strong) UITableView *tableView;
@property (nonatomic, assign) id<LTCustomMenuDelegate> delegate;
@property (nonatomic, strong) NSArray *arrData;
@property (nonatomic, strong) NSArray *arrImgName;
@property (nonatomic, copy) Dismiss dismiss;

@property (nonatomic, assign) CGPoint origin;
@property (nonatomic, assign) CGFloat rowHeight;

- (instancetype)initWithDataArr:(NSArray *)dataArr origin:(CGPoint)origin width:(CGFloat)width rowHeight:(CGFloat)rowHeight;

- (void)dismissWithCompletion:(void (^)(LocationCustomMenu *object))completion;

@end
